package com.ad_hccm.service.impl.Appendix;

import com.ad_hccm.dao.Appendix.EliminateDao;
import com.ad_hccm.domain.Appendix.Eliminate;
import com.ad_hccm.service.Appendix.EliminateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO 剔除
 */
@Service
public class EliminateServiceImpl implements EliminateService {
    @Autowired
    private EliminateDao dao;

    @Override
    public boolean save(Eliminate domain) {
        return dao.save(domain);
    }

    @Override
    public boolean update(Eliminate domain) {
        return dao.update(domain);
    }

    @Override
    public Eliminate getById(String id) {
        return dao.getById(id);
    }

    @Override
    public List<Eliminate> getAll() {
        return dao.getAll();
    }
    @Override
    public boolean delete(String id){return dao.delete(id);}
}
